package com.gitee.aurora.engine.vo;


import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * author: jiangfuxiao
 * Date:2022/9/24 22:51
 */
public class ResultZfjdData implements Serializable {
    //需要同步数据的执法监督ip
    private String zfjdIp;
    //执法监督需要同步的省厅数据中心数据id集合
    private List<Object> stSjzxIds;
    //状态0正常 1异常
    private int status ;

    public void setStSjzxIdss(StDataResultVo stResultVo){

        List list =  stResultVo.getStSjzxData().stream().filter(
                (stSjzxId) ->!stResultVo.getZfjdData().stream().map(value -> value.get("sId")).collect(Collectors.toList()).contains(stSjzxId.get("S_ID"))
        ).collect(Collectors.toList()).stream().map(value -> value.get("S_ID")).collect(Collectors.toList());

       this.stSjzxIds = list;
    }

    public String getZfjdIp() {
        return zfjdIp;
    }

    public void setZfjdIp(String zfjdIp) {
        this.zfjdIp = zfjdIp;
    }

    public List<Object> getStSjzxIds() {
        return stSjzxIds;
    }

    public void setStSjzxIds(List<Object> stSjzxIds) {
        this.stSjzxIds = stSjzxIds;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
